<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <title></title>
    <link type="text/css" rel="stylesheet" href="${base}/templates/${config.theme}/mobile/css/style.css" />
    <script src="${base}/templates/${config.theme}/mobile/js/jquery.min.js"></script>
</head>

<body>
    <div class="headerbox">
        <div class="header">
            <div class="headerL">
                <a onclick="javascript:history.back(-1)" class="goback"><img src="${base}/templates/${config.theme}/mobile/images/goback.png" /></a>
            </div>
            <div class="headerC">
                <p>确认订单</p>
            </div>
            <div class="headerR"></div>
        </div>
    </div>
    <div class="clear"></div>
    <div class="hbox"></div>
    <div class="kbox"></div>

    <form action="${base}/order/save" method="post" id="inputForm">
    <input type="hidden" name="consignee" value="${defaultReceiver.consignee}"/>
    <input type="hidden" name="address" value="${defaultReceiver.address}"/>
    <input type="hidden" name="areaName" value="${defaultReceiver.areaName}"/>
    <input type="hidden" name="phone" value="${defaultReceiver.phone}"/>
    <input type="hidden" name="zipCode" value="${defaultReceiver.zipCode}"/>
    <input type="hidden" name="areaId" value="${defaultReceiver.areaId}"/>
    <input name="shippingMethod" type="hidden" value="deliver" id="deliver" />



    <div class="jsaddress">
        <a href="${base}/receiver/list">
            <div class="jsaddressL">
                <p class="p6">收货人：${defaultReceiver.consignee}<span>${defaultReceiver.phone}</span></p>
                <p class="p5">${defaultReceiver.areaName}${defaultReceiver.address} </p>
            </div>
            <div class="jsaddressR">
                <img src="${base}/templates/${config.theme}/mobile/images/more.png" />
            </div>
            <div class="clear"></div>
        </a>
    </div>
    <div class="w100">
        <img src="${base}/templates/${config.theme}/mobile/images/addressline.png" />
    </div>
    <div class="clear"></div>
    <div class="kbox"></div>
    <div class="jsdingdan">

        [#list currentCart.cartItems as cartItem]
            <div class="jsxq">
                <div class="jsxq_1">
                    <img src="${cartItem.product.image}" />
                </div>
                <div class="jsxq_2">
                    <div class="js_1">
                        <p class="p1">${cartItem.product.name}...</p>
                        <p class="p2">${cartItem.product.price}</p>
                    </div>
                    <div class="js_2">
                        <p class="p3">颜色：白色；尺码：L</p>
                        <p class="p4">×￥${cartItem.subtotal}</p>
                    </div>
                </div>
            </div>
         [/#list]

        <div class="jsyf">
            <div class="jsyfL">快递运费：</div>
            <div class="jsyfR">全国包邮</div>
        </div>
        <div class="jsyf">
            <div class="jsyfL">买家留言：</div>
            <div class="jsyfC">订单补充说明...</div>
        </div>
        <div class="jshj">
            <div class="jshjp"><span class="sp1">合计：</span><span class="sp2">￥${currentCart.totalPrice}</span></div>
        </div>
    </div>
    <div class="clear"></div>
    <div class="kbox"></div>
    <div class="fbox2"></div>
    <div class="hejiBox jiesuan">
        <div class="heji">
            <div class="heji_3">
                <p>总计：<span>￥${currentCart.totalPrice}</span></p>
            </div>
            <div class="heji_5">
                <div id="btnOrder">确认</div>
            </div>
        </div>
    </div>


    </form>

     <script type="text/javascript">
 $(document).ready(function() {

     $("#btnOrder").on("click",function(){
         $('#inputForm').submit();
     });
 });
 </script>


</body>

</html>